package services

import (
	"system/connect"
	"system/models"
)

func GetAllSCs(scsParam map[string]interface{}) (error, []models.SC, int64) {
	err, scsData, total := connect.GetAllSCs(scsParam)
	return err, scsData, total
}

func DelSCs(id string,cno string) error {
	err := connect.DelSCs(id,cno)
	return err
}

func UpdateSCs(scs models.SC) error {
	err := connect.UpdateSCs(scs)
	return err
}

func AddSCs(scs models.SC) error {
	err := connect.AddSCs(scs)
	return err
}
